package basicelement;

import istar.agent.IstarJadeAgent;
import istar.behaviour.AbstractIstarBehaviour;
import istar.impl.AbstractBasicTask;
import jade.core.Agent;
import jade.core.behaviours.Behaviour;
import jade.core.behaviours.OneShotBehaviour;


public class SellAtBovespa extends AbstractBasicTask{

	private boolean log = true;
	
	public SellAtBovespa() {
		super("SellAtBovespa"); 
	}

	@Override
	public Behaviour getBehaviour() {
		return new myBehaviour(this);
	}
	
	private class myBehaviour extends AbstractIstarBehaviour{

		AbstractBasicTask task;
		private int estimatedTime = 100;
		
		public myBehaviour(AbstractBasicTask _task){
			super(_task);
		}
		
		@Override
		public long getEstimatedWaitingTime() {
			return estimatedTime;
		}


		@Override
		public void myAction() {
			
		}
		
		@Override
		public int myOnEnd() {
			// TODO Auto-generated method stub
			return 1;
		}

		@Override
		public boolean done() {
			return true;
		}
	}
}
